package com.woniu40.petai_user.mapper;

import com.sun.imageio.plugins.common.I18N;
import com.woniu40.petai_user.entity.Order;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OrderMapper {
    int deleteByPrimaryKey(Integer orderId);

    int insert(Order record);

    Order selectByPrimaryKey(Integer orderId);

    List<Order> selectAll();

    List<Order> selectOrderAll(Integer userId);

    int updateByPrimaryKey(Order record);

    Order selectByOrderNum(String orderNum);

    int deleteBuyProduct(String orderNum);
}